Platform Explorer / Nuxeo Platform 6.0

Component org.nuxeo.ecm.platform.faceted.search.dm.contentviews

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.faceted.search.dm.contentviews">

  <extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
    point="contentViews">

    <contentView name="faceted_search_default">
      <title>label.faceted.search.default</title>
      <translateTitle>true</translateTitle>
      <emptySentence>label.content.empty.search</emptySentence>
      <translateEmptySentence>true</translateEmptySentence>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
        <whereClause docType="FacetedSearchDefault">
          <fixedPart>
            ecm:mixinType != 'HiddenInNavigation' AND ecm:isCheckedInVersion = 0 AND
            ecm:currentLifeCycleState != 'deleted'
          </fixedPart>
          <predicate parameter="ecm:fulltext" operator="FULLTEXT">
            <field schema="faceted_search_default" name="ecm_fulltext" />
          </predicate>
          <predicate parameter="dc:created" operator="BETWEEN">
            <field schema="faceted_search_default" name="dc_created_min" />
            <field schema="faceted_search_default" name="dc_created_max" />
          </predicate>
          <predicate parameter="dc:modified" operator="BETWEEN">
            <field schema="faceted_search_default" name="dc_modified_min" />
            <field schema="faceted_search_default" name="dc_modified_max" />
          </predicate>
          <predicate parameter="dc:creator" operator="IN">
            <field schema="faceted_search_default" name="dc_creator" />
          </predicate>
          <predicate parameter="dc:nature" operator="IN">
            <field schema="faceted_search_default" name="dc_nature" />
          </predicate>
          <predicate parameter="dc:coverage" operator="STARTSWITH">
            <field schema="faceted_search_default" name="dc_coverage" />
          </predicate>
          <predicate parameter="dc:subjects" operator="STARTSWITH">
            <field schema="faceted_search_default" name="dc_subjects" />
          </predicate>
          <predicate parameter="ecm:path" operator="STARTSWITH">
            <field schema="faceted_search_default" name="ecm_path" />
          </predicate>
          <predicate parameter="collectionMember:collectionIds" operator="IN">
            <field schema="faceted_search_default" name="ecm_collections" />
          </predicate>
        </whereClause>
        <sort column="dc:title" ascending="true" />
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <searchLayout name="faceted_search_default" />

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout name="document_virtual_navigation_listing_ajax" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png"
          showCSVExport="true" showSyndicationLinks="true" />
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="CURRENT_SELECTION_LIST" />

      <flags>
        <flag>FACETED_SEARCH</flag>
      </flags>
    </contentView>

  </extension>

</component>